var token = getToken();
let user = JSON.parse(window.localStorage.getItem("userInfo"));
if (user) {
  let introduce = window.localStorage.getItem("introduce");
  if (user.jStatus) {
    $("#vip").html("vip");
  }
  $("#userId").html(user.id);
  $("#userName").html(user.userName);
  var ret = playGet(`/v1/api/users/tj/${user.id}`, "", "", token);
  if (ret.code == 200) {
    $("#introduceNum").html(ret.data.length);
  } else {
    mui.alert(ret.msg);
  }
  var ret1 = playGet(`v1/api/blance/site/${user.id}`, "", "", token);
  if (ret1.code == 200) {
    if (ret1.data.length > 0) {
      $("#addPay").hide();
    } else {
      $("#addPay").show();
    }
  } else {
    mui.alert(ret1.msg);
  }
}
